<template>
  <div class="home">
    <h3>这是首页</h3>
    <my-channels @select-change='handleChange'></my-channels>
    <hr>
    <my-cover v-model="imgUrl"></my-cover>
    <my-cover v-model="imgUrl2"></my-cover>
  </div>
</template>

<script>
import MyChannels from '@/components/my-channels.vue'
import MyCover from '@/components/my-cover.vue'
export default {
  name: 'Home',
  components: {
    MyChannels,
    MyCover
  },
  data () {
    return {
      channel_id: '',
      imgUrl: '',
      imgUrl2: ''
    }
  },
  methods: {
    handleChange (id) {
      this.channel_id = id
    }
  }
}
</script>

<style>

</style>
